/***************************************
	文件：TestInsParent.cs
	作者：林文豪
	日期：2021-05-13
	功能：1、
****************************************/
using System;
using UnityEngine;

namespace MyGame.Character {
    public class TestInsParent : MonoBehaviour {
	    public Transform     ObjParent;
	    public GameObject    Prefab;
	    public RectTransform PrefabParent;

	    private void Start() {
		    for (int i = 0; i < ObjParent.childCount; i++) {
			    Instantiate(Prefab, PrefabParent);
		    }
	    }
    }
}
